home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / clang / tkern091.zip / SRC / MAKEFILE < prev    next >
Text File  |  1994-03-06  |  2KB  |  93 lines

  1. #
  2. #  This file forms part of "TKERN" - "Troy's Kernel for Windows".
  3. #
  4. #  Copyright (C) 1994  Troy Rollo <troy@cbme.unsw.EDU.AU>
  5. #
  6. #  This library is free software; you can redistribute it and/or
  7. #  modify it under the terms of the GNU Library General Public
  8. #  License as published by the Free Software Foundation; either
  9. #  version 2 of the License, or (at your option) any later version.
  10. #
  11. #  This library is distributed in the hope that it will be useful,
  12. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14. #  Library General Public License for more details.
  15. #
  16. #  You should have received a copy of the GNU Library General Public
  17. #  License along with this library; if not, write to the Free
  18. #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. #
  20.  
  21. .AUTODEPEND
  22.  
  23. CC = bcc
  24.  
  25. GENFLAGS = -DSTRICT -w! -ml -v -c -I..\INCLUDE
  26. CFLAGS = -W $(GENFLAGS)
  27. DLLFLAGS = -WD $(GENFLAGS)
  28.  
  29. CCMD = $(CC) $(CFLAGS)
  30. DLLCMD = $(CC) $(DLLFLAGS)
  31.  
  32. .c.obj:
  33.     $(DLLCMD) $*.c
  34.  
  35. default: tkern.lib tklib.lib tkfmangr.exe
  36.  
  37. install: default
  38.     copy tkern.dll c:\windows\system
  39.     copy tkfmangr.exe c:\windows\system
  40.  
  41.  
  42. # The stuff for the kernel dll first
  43.  
  44. tkern.lib: tkern.dll
  45.     implib tkern.lib tkern.dll
  46.     copy tkern.lib ..\lib
  47.  
  48. tkern.dll: tkern.obj formattr.obj misc.obj io.obj process.obj
  49.     tlink /v /s /c /C /Twd @&&!
  50. c0dl $**,tkern,tkern,cwl cl mathwl import,tkern
  51. !
  52.  
  53.  
  54.  
  55. # Then the stuff for tkfmangr
  56.  
  57. window.obj: window.c
  58.     $(CCMD) $*.c
  59.  
  60. tfile.obj: tfile.c
  61.     $(CCMD) $*.c
  62.  
  63. tdevice.obj: tdevice.c
  64.     $(CCMD) $*.c
  65.  
  66. tkfmangr.obj : tkfmangr.c
  67.     $(CCMD) $*.c
  68.  
  69. tkfmangr.exe: tkfmangr.obj tdevice.obj window.obj tfile.obj
  70.     tlink /v /c /C /s /n /Twe @&&!
  71. c0wl.obj $**,tkfmangr.exe,,tkern cwl import
  72. !
  73.  
  74.  
  75.  
  76.  
  77. # Then tklib.lib, the objs that need to be linked into the apps.
  78.  
  79. stdio.obj: stdio.c
  80.     $(CCMD) $*.c
  81.  
  82. links.obj: links.c
  83.     $(CCMD) $*.c
  84.  
  85. putenv.obj: putenv.c
  86.     $(CCMD) $*.c
  87.  
  88.  
  89. tklib.lib: links.obj putenv.obj stdio.obj
  90.     del tklib.lib
  91.     tlib tklib.lib /C /E +links.obj +putenv.obj +stdio.obj
  92.     copy tklib.lib ..\lib
  93.